﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Globalization;
using System.Text;
using Volo.Abp.Application.Dtos;

namespace Himp.DataHub
{
    /// <summary>
    /// 科室信息
    /// </summary>
    public class DeptInfoDto : FullAuditedEntityDto<Guid>
    {
        /// <summary>
        /// 科室编码
        /// </summary>
        public string DeptCodg { get; set; }

        /// <summary>
        /// 科室名称
        /// </summary>
        public string DeptName { get; set; }

        /// <summary>
        /// 拼音助记码
        /// </summary>
        public string? Pinyincode { get; set; }

        /// <summary>
        /// 五笔助记码
        /// </summary>
        public string? Wubicode { get; set; }

        /// <summary>
        /// 排序号
        /// </summary>
        public int SrtNo { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? Begntime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? Endtime { get; set; }

        /// <summary>
        /// 简介
        /// </summary>
        public string? Itro { get; set; }

        /// <summary>
        /// 科别
        /// 参照科室代码
        /// </summary>
        public string? CatyCode { get; set; }

        /// <summary>
        /// 科别
        /// 参照科室代码
        /// </summary>
        public string? CatyName { get; set; }

        /// <summary>
        /// 机构信息Id
        /// </summary>
        public Guid? OrganId { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Memo { get; set; }

        /// <summary>
        /// 科室对应属性
        /// </summary>
        public List<DeptAssocAttrDto> DeptAssocAttrs { get; set; }

        /// <summary>
        /// 上级科室
        /// </summary>
        public Guid? ParentId { get; set; }

        /// <summary>
        /// 下级科室
        /// </summary>
        public List<DeptInfoDto> Children { get; set; }
    }
}
